package cn.yaboya.org.service.impl;

import cn.yaboya.basic.service.Impl.BaseServiceImpl;
import cn.yaboya.basic.utils.PageList;
import cn.yaboya.org.domain.ShopAuditLog;
import cn.yaboya.org.mapper.ShopAuditLogMapper;
import cn.yaboya.org.query.ShopAuditLogQuery;
import cn.yaboya.org.service.IShopAuditLogService;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yaboya
 * @since 2022-07-02
 */
@Service
public class ShopAuditLogServiceImpl extends BaseServiceImpl<ShopAuditLog> implements IShopAuditLogService {

    @Autowired
    private ShopAuditLogMapper shopAuditLogMapper;

    @Override
    public PageList<ShopAuditLog> LoadByShopId(ShopAuditLogQuery shopAuditLogQuery) {

        List<ShopAuditLog> rows = shopAuditLogMapper.LoadByShopId(shopAuditLogQuery);
        System.out.println(rows.toString());


        return new PageList<ShopAuditLog>(rows, rows.size());

    }
}
